package io.renren.modules.erp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.erp.entity.MaterialProperty;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface MaterialPropertyService extends IService<MaterialProperty> {

    MaterialProperty getMaterialProperty(long id)throws Exception ;

    List<MaterialProperty> getMaterialProperty()throws Exception ;

    PageUtils select(String name, int currPage, int pageSize)throws Exception ;

    Long countMaterialProperty(String name)throws Exception ;

    int insertMaterialProperty(String beanJson, HttpServletRequest request)throws Exception ;

    int updateMaterialProperty(String beanJson, Long id, HttpServletRequest request)throws Exception ;

    int deleteMaterialProperty(Long id, HttpServletRequest request)throws Exception ;

    int batchDeleteMaterialProperty(String ids, HttpServletRequest request)throws Exception;

    int checkIsNameExist(Long id, String name)throws Exception;
    int batchDeleteMaterialPropertyByIds(String ids,Long userId) throws Exception;
}
